<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/8/1
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.6.8/css/layui.css"  media="all">
    <!-- 引入layui.css -->
</head>
<body>

<table class="layui-hide" id="demo"></table>

<a href="${pageContext.request.contextPath}/Admin/Menu" class="layui-btn">返回</a>

<script src="https://www.layuicdn.com/layui-v2.6.8/layui.js" charset="utf-8"></script>

<script>
    layui.use('table', function(){
        var table = layui.table;

        //展示已知数据
        table.render({
            elem: '#demo'
            ,cols: [[ //标题栏
                {field: 'id', title: 'ID', width: 80, sort: true}
                ,{field: 'username', title: '用户名', width: 120}
                ,{field: 'phone', title: '联系电话', minWidth: 150}
                ,{field: 'sign', title: '班表', minWidth: 160}
                ,{field: 'experience', title: '积分', width: 80, sort: true}
            ]]
            ,data: [{
                "id": "10001"
                ,"username": "陈子男"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "17"
            }, {
                "id": "10002"
                ,"username": "绔子弟"
                ,"phone": "18563592168"
                ,"sign": "Tuesday 14.00-19.00 PM"
                ,"experience": "12"
            }, {
                "id": "10003"
                ,"username": "杨锡菲牛"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "11"
            }, {
                "id": "10004"
                ,"username": "鸡西"
                ,"phone": "18596256989"
                ,"sign": "Friday 8.00-12.00 AM"
                ,"experience": "186"
            }, {
                "id": "10005"
                ,"username": "Jann神"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "516"

            }, {
                "id": "10006"
                ,"username": "杨飞龙人"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "616"

            }, {
                "id": "10007"
                ,"username": "金信行"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "16"

            }, {
                "id": "10008"
                ,"username": "芭芭拉"
                ,"phone": "18596256989"
                ,"sign": "Monday 8.00-12.00 AM"
                ,"experience": "216"

            }]
            ,skin: 'line'
            ,even: true
            ,page: true
            ,limits: [5, 7, 10]
             ,limit: 5
        });
    });
</script>

</body>
</html>